type HttpResponse native;

export function status-code:
    &(HttpResponse) => Number
    native 'http-response-status-code';

export function header:
    &(HttpResponse) => Map[String,List[String]]
    native 'http-response-header';

export function body:
    &(HttpResponse) => Bytes
    native 'http-response-body';

export function http-get:
    &(URL) => Async[HttpResponse,Error]
    native 'http-get';
